#define  _CRT_SECURE_NO_WARNINGS   1
#include "Tree.h"


Tree* CreatTree()
{
	Tree* nodeA = MakeSpace('A');
	Tree* nodeB = MakeSpace('B');
	Tree* nodeC = MakeSpace('C');
	Tree* nodeD = MakeSpace('D');
	Tree* nodeE = MakeSpace('E');
	Tree* nodeF = MakeSpace('F');

	nodeA->left = nodeB;
	nodeA->right = nodeC;
	nodeB->left = nodeD;
	nodeC->left = nodeE;
	nodeC->right = nodeF;
	return nodeA;
}

void test()
{
	Tree*root=CreatTree();
	PreOrder(root);
	printf("\n");
	MinOrder(root);
	printf("\n");
	PosOrder(root);
	printf("\n");
	printf("Tree Size:%d\n", BinaryTreeSize(root));
	//printf("Tree Size:%d\n", BinaryTreeSize(root));
	printf("Leaf Size:%d\n", BinaryTreeLeafSize(root));
}
int main()
{
	test();
	return 0;
}